#include "widget.h"
#include "ui_widget.h"
#include <QHBoxLayout>
#include <QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QHBoxLayout *layout = new QHBoxLayout();
    this->setLayout(layout);

    QPushButton *button1 = new QPushButton("111");
    QPushButton *button2 = new QPushButton("222");

    QSpacerItem* spaceItem = new QSpacerItem(200,10);

    layout->addWidget(button1);
    layout->addSpacerItem(spaceItem);
    layout->addWidget(button2);


}

Widget::~Widget()
{
    delete ui;
}

